home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000114_icon-group-sender _Mon Jun 29 08:41:21 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA06676
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 29 Jun 1998 08:41:21 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA01032; Mon, 29 Jun 1998 08:41:09 -0700
Message-Id: <35970078.4332DA12@ix.netcom.com>
Date: Sun, 28 Jun 1998 22:48:24 -0400
From: Phillip Lee Thomas <teruthom@ix.netcom.com>
Reply-To: thomaspl@acm.org
X-Mailer: Mozilla 4.05 [en] (Win95; U)
Mime-Version: 1.0
To: icon-group@optima.CS.Arizona.EDU
Subject: Retrieving lists from tables
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 575
I'm working on a project where it would be most convenient to store
information in a table where the index is a list and the value is a
record; however, I find it not obvious how to retrieve the data as lists
are retrieved by their ID number, not their value. Any suggestions?
record ref(part1,part2)
# Initially...
t := table()
L := ["house","horse"]
t[L] := ref(1,2)
# Later...
L2 := ["house","horse"]
Now I want to find out if a list with the content of L2 is in table t,
and if so to augment the value of its part1.
-- Phillip Thomas